﻿using System;
using System.Diagnostics;
using System.IO;
using Google.ProtocolBuffers;
using Google.ProtocolBuffers.Descriptors;
using Google.ProtocolBuffers.FieldAccess;

namespace com.gexin.rp.sdk.dto
{
	// Token: 0x02000014 RID: 20
	[DebuggerNonUserCode]
	public sealed class StopBatchTask : GeneratedMessage<StopBatchTask, StopBatchTask.Builder>
	{
		// Token: 0x060001D6 RID: 470 RVA: 0x00004F8E File Offset: 0x0000318E
		private StopBatchTask()
		{
		}

		// Token: 0x170000C0 RID: 192
		// (get) Token: 0x060001D7 RID: 471 RVA: 0x00004FC9 File Offset: 0x000031C9
		public static StopBatchTask DefaultInstance
		{
			get
			{
				return StopBatchTask.defaultInstance;
			}
		}

		// Token: 0x170000C1 RID: 193
		// (get) Token: 0x060001D8 RID: 472 RVA: 0x00004FD0 File Offset: 0x000031D0
		public override StopBatchTask DefaultInstanceForType
		{
			get
			{
				return StopBatchTask.DefaultInstance;
			}
		}

		// Token: 0x170000C2 RID: 194
		// (get) Token: 0x060001D9 RID: 473 RVA: 0x00002579 File Offset: 0x00000779
		protected override StopBatchTask ThisMessage
		{
			get
			{
				return this;
			}
		}

		// Token: 0x170000C3 RID: 195
		// (get) Token: 0x060001DA RID: 474 RVA: 0x00004FD7 File Offset: 0x000031D7
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GtReq.internal__static_com_gexin_rp_sdk_dto_StopBatchTask__Descriptor;
			}
		}

		// Token: 0x170000C4 RID: 196
		// (get) Token: 0x060001DB RID: 475 RVA: 0x00004FDE File Offset: 0x000031DE
		protected override FieldAccessorTable<StopBatchTask, StopBatchTask.Builder> InternalFieldAccessors
		{
			get
			{
				return GtReq.internal__static_com_gexin_rp_sdk_dto_StopBatchTask__FieldAccessorTable;
			}
		}

		// Token: 0x170000C5 RID: 197
		// (get) Token: 0x060001DC RID: 476 RVA: 0x00004FE5 File Offset: 0x000031E5
		public bool HasTaskId
		{
			get
			{
				return this.hasTaskId;
			}
		}

		// Token: 0x170000C6 RID: 198
		// (get) Token: 0x060001DD RID: 477 RVA: 0x00004FED File Offset: 0x000031ED
		public string TaskId
		{
			get
			{
				return this.taskId_;
			}
		}

		// Token: 0x170000C7 RID: 199
		// (get) Token: 0x060001DE RID: 478 RVA: 0x00004FF5 File Offset: 0x000031F5
		public bool HasAppkey
		{
			get
			{
				return this.hasAppkey;
			}
		}

		// Token: 0x170000C8 RID: 200
		// (get) Token: 0x060001DF RID: 479 RVA: 0x00004FFD File Offset: 0x000031FD
		public string Appkey
		{
			get
			{
				return this.appkey_;
			}
		}

		// Token: 0x170000C9 RID: 201
		// (get) Token: 0x060001E0 RID: 480 RVA: 0x00005005 File Offset: 0x00003205
		public bool HasAppId
		{
			get
			{
				return this.hasAppId;
			}
		}

		// Token: 0x170000CA RID: 202
		// (get) Token: 0x060001E1 RID: 481 RVA: 0x0000500D File Offset: 0x0000320D
		public string AppId
		{
			get
			{
				return this.appId_;
			}
		}

		// Token: 0x170000CB RID: 203
		// (get) Token: 0x060001E2 RID: 482 RVA: 0x00005015 File Offset: 0x00003215
		public bool HasSeqId
		{
			get
			{
				return this.hasSeqId;
			}
		}

		// Token: 0x170000CC RID: 204
		// (get) Token: 0x060001E3 RID: 483 RVA: 0x0000501D File Offset: 0x0000321D
		public string SeqId
		{
			get
			{
				return this.seqId_;
			}
		}

		// Token: 0x170000CD RID: 205
		// (get) Token: 0x060001E4 RID: 484 RVA: 0x00005025 File Offset: 0x00003225
		public override bool IsInitialized
		{
			get
			{
				return this.hasTaskId && this.hasAppkey;
			}
		}

		// Token: 0x060001E5 RID: 485 RVA: 0x0000503C File Offset: 0x0000323C
		public override void WriteTo(ICodedOutputStream output)
		{
			this.CalcSerializedSize();
			string[] stopBatchTaskFieldNames = StopBatchTask._stopBatchTaskFieldNames;
			if (this.hasTaskId)
			{
				output.WriteString(1, stopBatchTaskFieldNames[3], this.TaskId);
			}
			if (this.hasAppkey)
			{
				output.WriteString(2, stopBatchTaskFieldNames[1], this.Appkey);
			}
			if (this.hasAppId)
			{
				output.WriteString(3, stopBatchTaskFieldNames[0], this.AppId);
			}
			if (this.hasSeqId)
			{
				output.WriteString(4, stopBatchTaskFieldNames[2], this.SeqId);
			}
			this.UnknownFields.WriteTo(output);
		}

		// Token: 0x170000CE RID: 206
		// (get) Token: 0x060001E6 RID: 486 RVA: 0x000050C4 File Offset: 0x000032C4
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				return this.CalcSerializedSize();
			}
		}

		// Token: 0x060001E7 RID: 487 RVA: 0x000050E4 File Offset: 0x000032E4
		private int CalcSerializedSize()
		{
			int num = this.memoizedSerializedSize;
			if (num != -1)
			{
				return num;
			}
			num = 0;
			if (this.hasTaskId)
			{
				num += CodedOutputStream.ComputeStringSize(1, this.TaskId);
			}
			if (this.hasAppkey)
			{
				num += CodedOutputStream.ComputeStringSize(2, this.Appkey);
			}
			if (this.hasAppId)
			{
				num += CodedOutputStream.ComputeStringSize(3, this.AppId);
			}
			if (this.hasSeqId)
			{
				num += CodedOutputStream.ComputeStringSize(4, this.SeqId);
			}
			num += this.UnknownFields.SerializedSize;
			this.memoizedSerializedSize = num;
			return num;
		}

		// Token: 0x060001E8 RID: 488 RVA: 0x00005172 File Offset: 0x00003372
		public static StopBatchTask ParseFrom(ByteString data)
		{
			return StopBatchTask.CreateBuilder().MergeFrom(data).BuildParsed();
		}

		// Token: 0x060001E9 RID: 489 RVA: 0x00005184 File Offset: 0x00003384
		public static StopBatchTask ParseFrom(ByteString data, ExtensionRegistry extensionRegistry)
		{
			return StopBatchTask.CreateBuilder().MergeFrom(data, extensionRegistry).BuildParsed();
		}

		// Token: 0x060001EA RID: 490 RVA: 0x00005197 File Offset: 0x00003397
		public static StopBatchTask ParseFrom(byte[] data)
		{
			return StopBatchTask.CreateBuilder().MergeFrom(data).BuildParsed();
		}

		// Token: 0x060001EB RID: 491 RVA: 0x000051A9 File Offset: 0x000033A9
		public static StopBatchTask ParseFrom(byte[] data, ExtensionRegistry extensionRegistry)
		{
			return StopBatchTask.CreateBuilder().MergeFrom(data, extensionRegistry).BuildParsed();
		}

		// Token: 0x060001EC RID: 492 RVA: 0x000051BC File Offset: 0x000033BC
		public static StopBatchTask ParseFrom(Stream input)
		{
			return StopBatchTask.CreateBuilder().MergeFrom(input).BuildParsed();
		}

		// Token: 0x060001ED RID: 493 RVA: 0x000051CE File Offset: 0x000033CE
		public static StopBatchTask ParseFrom(Stream input, ExtensionRegistry extensionRegistry)
		{
			return StopBatchTask.CreateBuilder().MergeFrom(input, extensionRegistry).BuildParsed();
		}

		// Token: 0x060001EE RID: 494 RVA: 0x000051E1 File Offset: 0x000033E1
		public static StopBatchTask ParseDelimitedFrom(Stream input)
		{
			return StopBatchTask.CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
		}

		// Token: 0x060001EF RID: 495 RVA: 0x000051F3 File Offset: 0x000033F3
		public static StopBatchTask ParseDelimitedFrom(Stream input, ExtensionRegistry extensionRegistry)
		{
			return StopBatchTask.CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
		}

		// Token: 0x060001F0 RID: 496 RVA: 0x00005206 File Offset: 0x00003406
		public static StopBatchTask ParseFrom(ICodedInputStream input)
		{
			return StopBatchTask.CreateBuilder().MergeFrom(input).BuildParsed();
		}

		// Token: 0x060001F1 RID: 497 RVA: 0x00005218 File Offset: 0x00003418
		public static StopBatchTask ParseFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
		{
			return StopBatchTask.CreateBuilder().MergeFrom(input, extensionRegistry).BuildParsed();
		}

		// Token: 0x060001F2 RID: 498 RVA: 0x00002579 File Offset: 0x00000779
		private StopBatchTask MakeReadOnly()
		{
			return this;
		}

		// Token: 0x060001F3 RID: 499 RVA: 0x0000522B File Offset: 0x0000342B
		public static StopBatchTask.Builder CreateBuilder()
		{
			return new StopBatchTask.Builder();
		}

		// Token: 0x060001F4 RID: 500 RVA: 0x00005232 File Offset: 0x00003432
		public override StopBatchTask.Builder ToBuilder()
		{
			return StopBatchTask.CreateBuilder(this);
		}

		// Token: 0x060001F5 RID: 501 RVA: 0x0000522B File Offset: 0x0000342B
		public override StopBatchTask.Builder CreateBuilderForType()
		{
			return new StopBatchTask.Builder();
		}

		// Token: 0x060001F6 RID: 502 RVA: 0x0000523A File Offset: 0x0000343A
		public static StopBatchTask.Builder CreateBuilder(StopBatchTask prototype)
		{
			return new StopBatchTask.Builder(prototype);
		}

		// Token: 0x060001F7 RID: 503 RVA: 0x00005244 File Offset: 0x00003444
		static StopBatchTask()
		{
			FileDescriptor descriptor = GtReq.Descriptor;
		}

		// Token: 0x0400010D RID: 269
		private static readonly StopBatchTask defaultInstance = new StopBatchTask().MakeReadOnly();

		// Token: 0x0400010E RID: 270
		private static readonly string[] _stopBatchTaskFieldNames = new string[]
		{
			"appId",
			"appkey",
			"seqId",
			"taskId"
		};

		// Token: 0x0400010F RID: 271
		private static readonly uint[] _stopBatchTaskFieldTags = new uint[]
		{
			26u,
			18u,
			34u,
			10u
		};

		// Token: 0x04000110 RID: 272
		public const int TaskIdFieldNumber = 1;

		// Token: 0x04000111 RID: 273
		private bool hasTaskId;

		// Token: 0x04000112 RID: 274
		private string taskId_ = "";

		// Token: 0x04000113 RID: 275
		public const int AppkeyFieldNumber = 2;

		// Token: 0x04000114 RID: 276
		private bool hasAppkey;

		// Token: 0x04000115 RID: 277
		private string appkey_ = "";

		// Token: 0x04000116 RID: 278
		public const int AppIdFieldNumber = 3;

		// Token: 0x04000117 RID: 279
		private bool hasAppId;

		// Token: 0x04000118 RID: 280
		private string appId_ = "";

		// Token: 0x04000119 RID: 281
		public const int SeqIdFieldNumber = 4;

		// Token: 0x0400011A RID: 282
		private bool hasSeqId;

		// Token: 0x0400011B RID: 283
		private string seqId_ = "";

		// Token: 0x0400011C RID: 284
		private int memoizedSerializedSize = -1;

		// Token: 0x02000060 RID: 96
		[DebuggerNonUserCode]
		public sealed class Builder : GeneratedBuilder<StopBatchTask, StopBatchTask.Builder>
		{
			// Token: 0x17000309 RID: 777
			// (get) Token: 0x0600077C RID: 1916 RVA: 0x00002579 File Offset: 0x00000779
			protected override StopBatchTask.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}

			// Token: 0x0600077D RID: 1917 RVA: 0x00011C9A File Offset: 0x0000FE9A
			public Builder()
			{
				this.result = StopBatchTask.DefaultInstance;
				this.resultIsReadOnly = true;
			}

			// Token: 0x0600077E RID: 1918 RVA: 0x00011CB4 File Offset: 0x0000FEB4
			internal Builder(StopBatchTask cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}

			// Token: 0x0600077F RID: 1919 RVA: 0x00011CCC File Offset: 0x0000FECC
			private StopBatchTask PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					StopBatchTask other = this.result;
					this.result = new StopBatchTask();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}

			// Token: 0x1700030A RID: 778
			// (get) Token: 0x06000780 RID: 1920 RVA: 0x00011D08 File Offset: 0x0000FF08
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}

			// Token: 0x1700030B RID: 779
			// (get) Token: 0x06000781 RID: 1921 RVA: 0x00011D15 File Offset: 0x0000FF15
			protected override StopBatchTask MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}

			// Token: 0x06000782 RID: 1922 RVA: 0x00011D1D File Offset: 0x0000FF1D
			public override StopBatchTask.Builder Clear()
			{
				this.result = StopBatchTask.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}

			// Token: 0x06000783 RID: 1923 RVA: 0x00011D32 File Offset: 0x0000FF32
			public override StopBatchTask.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new StopBatchTask.Builder(this.result);
				}
				return new StopBatchTask.Builder().MergeFrom(this.result);
			}

			// Token: 0x1700030C RID: 780
			// (get) Token: 0x06000784 RID: 1924 RVA: 0x00011D58 File Offset: 0x0000FF58
			public override MessageDescriptor DescriptorForType
			{
				get
				{
					return StopBatchTask.Descriptor;
				}
			}

			// Token: 0x1700030D RID: 781
			// (get) Token: 0x06000785 RID: 1925 RVA: 0x00004FD0 File Offset: 0x000031D0
			public override StopBatchTask DefaultInstanceForType
			{
				get
				{
					return StopBatchTask.DefaultInstance;
				}
			}

			// Token: 0x06000786 RID: 1926 RVA: 0x00011D5F File Offset: 0x0000FF5F
			public override StopBatchTask BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}

			// Token: 0x06000787 RID: 1927 RVA: 0x00011D82 File Offset: 0x0000FF82
			public override StopBatchTask.Builder MergeFrom(IMessage other)
			{
				if (other is StopBatchTask)
				{
					return this.MergeFrom((StopBatchTask)other);
				}
				base.MergeFrom(other);
				return this;
			}

			// Token: 0x06000788 RID: 1928 RVA: 0x00011DA4 File Offset: 0x0000FFA4
			public override StopBatchTask.Builder MergeFrom(StopBatchTask other)
			{
				if (other == StopBatchTask.DefaultInstance)
				{
					return this;
				}
				this.PrepareBuilder();
				if (other.HasTaskId)
				{
					this.TaskId = other.TaskId;
				}
				if (other.HasAppkey)
				{
					this.Appkey = other.Appkey;
				}
				if (other.HasAppId)
				{
					this.AppId = other.AppId;
				}
				if (other.HasSeqId)
				{
					this.SeqId = other.SeqId;
				}
				this.MergeUnknownFields(other.UnknownFields);
				return this;
			}

			// Token: 0x06000789 RID: 1929 RVA: 0x00011E20 File Offset: 0x00010020
			public override StopBatchTask.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}

			// Token: 0x0600078A RID: 1930 RVA: 0x00011E30 File Offset: 0x00010030
			public override StopBatchTask.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				UnknownFieldSet.Builder builder = null;
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(StopBatchTask._stopBatchTaskFieldNames, text, StringComparer.Ordinal);
						if (num2 < 0)
						{
							if (builder == null)
							{
								builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
							}
							this.ParseUnknownField(input, builder, extensionRegistry, num, text);
							continue;
						}
						num = StopBatchTask._stopBatchTaskFieldTags[num2];
					}
					if (num <= 10u)
					{
						if (num == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num == 10u)
						{
							this.result.hasTaskId = input.ReadString(ref this.result.taskId_);
							continue;
						}
					}
					else
					{
						if (num == 18u)
						{
							this.result.hasAppkey = input.ReadString(ref this.result.appkey_);
							continue;
						}
						if (num == 26u)
						{
							this.result.hasAppId = input.ReadString(ref this.result.appId_);
							continue;
						}
						if (num == 34u)
						{
							this.result.hasSeqId = input.ReadString(ref this.result.seqId_);
							continue;
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						if (builder != null)
						{
							this.UnknownFields = builder.Build();
						}
						return this;
					}
					if (builder == null)
					{
						builder = UnknownFieldSet.CreateBuilder(this.UnknownFields);
					}
					this.ParseUnknownField(input, builder, extensionRegistry, num, text);
				}
				if (builder != null)
				{
					this.UnknownFields = builder.Build();
				}
				return this;
			}

			// Token: 0x1700030E RID: 782
			// (get) Token: 0x0600078B RID: 1931 RVA: 0x00011F87 File Offset: 0x00010187
			public bool HasTaskId
			{
				get
				{
					return this.result.hasTaskId;
				}
			}

			// Token: 0x1700030F RID: 783
			// (get) Token: 0x0600078C RID: 1932 RVA: 0x00011F94 File Offset: 0x00010194
			// (set) Token: 0x0600078D RID: 1933 RVA: 0x00011FA1 File Offset: 0x000101A1
			public string TaskId
			{
				get
				{
					return this.result.TaskId;
				}
				set
				{
					this.SetTaskId(value);
				}
			}

			// Token: 0x0600078E RID: 1934 RVA: 0x00011FAB File Offset: 0x000101AB
			public StopBatchTask.Builder SetTaskId(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasTaskId = true;
				this.result.taskId_ = value;
				return this;
			}

			// Token: 0x0600078F RID: 1935 RVA: 0x00011FD8 File Offset: 0x000101D8
			public StopBatchTask.Builder ClearTaskId()
			{
				this.PrepareBuilder();
				this.result.hasTaskId = false;
				this.result.taskId_ = "";
				return this;
			}

			// Token: 0x17000310 RID: 784
			// (get) Token: 0x06000790 RID: 1936 RVA: 0x00011FFE File Offset: 0x000101FE
			public bool HasAppkey
			{
				get
				{
					return this.result.hasAppkey;
				}
			}

			// Token: 0x17000311 RID: 785
			// (get) Token: 0x06000791 RID: 1937 RVA: 0x0001200B File Offset: 0x0001020B
			// (set) Token: 0x06000792 RID: 1938 RVA: 0x00012018 File Offset: 0x00010218
			public string Appkey
			{
				get
				{
					return this.result.Appkey;
				}
				set
				{
					this.SetAppkey(value);
				}
			}

			// Token: 0x06000793 RID: 1939 RVA: 0x00012022 File Offset: 0x00010222
			public StopBatchTask.Builder SetAppkey(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasAppkey = true;
				this.result.appkey_ = value;
				return this;
			}

			// Token: 0x06000794 RID: 1940 RVA: 0x0001204F File Offset: 0x0001024F
			public StopBatchTask.Builder ClearAppkey()
			{
				this.PrepareBuilder();
				this.result.hasAppkey = false;
				this.result.appkey_ = "";
				return this;
			}

			// Token: 0x17000312 RID: 786
			// (get) Token: 0x06000795 RID: 1941 RVA: 0x00012075 File Offset: 0x00010275
			public bool HasAppId
			{
				get
				{
					return this.result.hasAppId;
				}
			}

			// Token: 0x17000313 RID: 787
			// (get) Token: 0x06000796 RID: 1942 RVA: 0x00012082 File Offset: 0x00010282
			// (set) Token: 0x06000797 RID: 1943 RVA: 0x0001208F File Offset: 0x0001028F
			public string AppId
			{
				get
				{
					return this.result.AppId;
				}
				set
				{
					this.SetAppId(value);
				}
			}

			// Token: 0x06000798 RID: 1944 RVA: 0x00012099 File Offset: 0x00010299
			public StopBatchTask.Builder SetAppId(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasAppId = true;
				this.result.appId_ = value;
				return this;
			}

			// Token: 0x06000799 RID: 1945 RVA: 0x000120C6 File Offset: 0x000102C6
			public StopBatchTask.Builder ClearAppId()
			{
				this.PrepareBuilder();
				this.result.hasAppId = false;
				this.result.appId_ = "";
				return this;
			}

			// Token: 0x17000314 RID: 788
			// (get) Token: 0x0600079A RID: 1946 RVA: 0x000120EC File Offset: 0x000102EC
			public bool HasSeqId
			{
				get
				{
					return this.result.hasSeqId;
				}
			}

			// Token: 0x17000315 RID: 789
			// (get) Token: 0x0600079B RID: 1947 RVA: 0x000120F9 File Offset: 0x000102F9
			// (set) Token: 0x0600079C RID: 1948 RVA: 0x00012106 File Offset: 0x00010306
			public string SeqId
			{
				get
				{
					return this.result.SeqId;
				}
				set
				{
					this.SetSeqId(value);
				}
			}

			// Token: 0x0600079D RID: 1949 RVA: 0x00012110 File Offset: 0x00010310
			public StopBatchTask.Builder SetSeqId(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasSeqId = true;
				this.result.seqId_ = value;
				return this;
			}

			// Token: 0x0600079E RID: 1950 RVA: 0x0001213D File Offset: 0x0001033D
			public StopBatchTask.Builder ClearSeqId()
			{
				this.PrepareBuilder();
				this.result.hasSeqId = false;
				this.result.seqId_ = "";
				return this;
			}

			// Token: 0x04000357 RID: 855
			private bool resultIsReadOnly;

			// Token: 0x04000358 RID: 856
			private StopBatchTask result;
		}
	}
}
